<template>
  <div>
    <el-breadcrumb>
      <el-breadcrumb-item>首页</el-breadcrumb-item>
      <el-breadcrumb-item v-breadcrumb-certify></el-breadcrumb-item>
    </el-breadcrumb>
    <div class="content">
        <heading grade="1">服务列表</heading>
        <el-tabs v-model="type" @tab-click="handleTabs">
          <el-tab-pane label="进行中" name="underway"></el-tab-pane>
          <el-tab-pane label="仓库中" name="store"></el-tab-pane>
          <el-tab-pane label="审核中" name="check"></el-tab-pane>
          <el-tab-pane label="审核不通过" name="fail"></el-tab-pane>
        </el-tabs>
        <router-view :key="$route.params.type"></router-view>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      type: this.$route.params.type || 'underway'
    }
  },
  methods: {
    handleTabs () {
      this.$router.push({path: '/service/list/' + this.type})
    }
  },
  mounted () {
  }
}
</script>
<style lang="scss">
</style>
